<template>
    <div id="data-view">
        <dv-full-screen-container>
            <dv-border-box-11>
                <div class="top-header">
                    <div class="th-left">

                    </div>
                    <div class="th-middle">
                        气象数据分析
                    </div>
                    <div class="th-right">
                    </div>
                </div>

                <dv-border-box-1 class="view-container">
                    <dv-border-box-3 class="left-container">
                        <Left-Chart-2 />
                        <Left-Chart-1 :data="realtime_result.realtime" />
                        <Left-Chart-3 />
                    </dv-border-box-3>

                    <div class="ml-right-main-container">
                        <!-- <div class="rmc-top-container">
                            <dv-border-box-9 class="rmctc-left-container">
                                <Center-Cmp :alert="realtime_result.alert" />
                            </dv-border-box-9>

                            <div class="rmctc-right-container">
                                <dv-border-box-8 class="rmctc-chart-1">
                                    <Right-Chart-1 style="width:504px;" />
                                </dv-border-box-8>

                                <dv-border-box-8 class="rmctc-chart-2" :reverse="true">
                                    <Right-Chart-2 style="width:504px;" />
                                </dv-border-box-8>
                            </div>
                        </div>

                        <dv-border-box-13 class="rmc-bottom-container">
                            <Bottom-Charts />
                        </dv-border-box-13> -->
                    </div>
                </dv-border-box-1>
            </dv-border-box-11>
        </dv-full-screen-container>
    </div>
</template>

<script lang="ts" setup>
import LeftChart1 from '@/views/dashboard/components/datav/meteorological/LeftChart1.vue'
import LeftChart2 from '@/views/dashboard/components/datav/meteorological/LeftChart2.vue'
import LeftChart3 from '@/views/dashboard/components/datav/meteorological/LeftChart3.vue'

import CenterCmp from '@/views/dashboard/components/datav/meteorological/CenterCmp.vue'

import RightChart1 from '@/views/dashboard/components/datav/meteorological/RightChart1.vue'
import RightChart2 from '@/views/dashboard/components/datav/meteorological/RightChart2.vue'

import BottomCharts from '@/views/dashboard/components/datav/meteorological/BottomCharts.vue'

const realtime_result = {
    "alert": {
        "status": "预警中",
        "pubtimestamp": 1640733900,
        "description": "海淀区气象台29日07时25分发布大风蓝色预警,预计，当前至29日16时，海淀区将有3、4级偏北风，阵风6、7级，请注意防范。",
        "title": "海淀区气象台发布大风蓝色预警[IV/一般]",
        "source": "国家预警信息发布中心",
        "province": "北京市",
        "city": "海淀区",
        "county": "无"
    },
    "realtime": {
        "skycon": 'CLEAR_DAY',
        "skyconName": "晴",
        "temperature": '31.75',
        "humidity": 0.11 * 100,
        "wind": {
            "speed": 30.17,
            "direction": 341.95
        }
    }
}
</script>

<style lang="scss" scoped>
#data-view {
    width: 100%;
    height: 100%;
    background-color: #222e6d;
    color: #fff;

    #dv-full-screen-container {
        background-image: url('./components/datav/img/bg.png');
        background-size: 100% 100%;
        display: flex;
        flex-direction: column;
    }

    .top-header {
        height: 48px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;

        .th-left {
            font-size: 20px;
            color: rgb(1, 134, 187);

            a:visited {
                color: rgb(1, 134, 187);
            }
        }

        .th-middle {
            font-size: 30px;
        }

        .th-left,
        .th-right {
            width: 450px;
        }
    }

    .view-container {
        display: flex;
        justify-content: space-between;
        
    }

    .left-container {
        width: 25%;
        padding: 10px;
        box-sizing: border-box;
        background-color: aqua;
    }

    .ml-right-main-container {
        width: 70%;
        height: 100%;
        padding-left: 5px;
        box-sizing: border-box;
        background-color: rebeccapurple;
    }

    .rmc-top-container {
        height: 65%;
        display: flex;
    }

    .rmctc-left-container {
        width: 65%;

    }

    .rmctc-right-container {
        width: 35%;
        background-color: red;
    }

    .rmc-bottom-container {
        height: 35%;
        background-color: red;
    }

    .rmctc-chart-1,
    .rmctc-chart-2 {
        height: 50%;
        background-color: red;
    }
}
</style>
